import request from '/@/utils/request.ts';

export function getTenantDatabasesList(params: object) {
	return request({
		url: 'plat/tenantDatabases/page',
		method: 'get',
		params,
	});
}

export function addTenantDatabases(data: object) {
	return request({
		url: 'plat/tenantDatabases/',
		method: 'POST',
		data: data,
	});
}

export function getTenantDatabasesInfo(dsId: any) {
	return request({
		url: `plat/tenantDatabases/${dsId}`,
		method: 'GET',
	});
}

export function editTenantDatabases(data: object) {
	return request({
		url: `plat/tenantDatabases`,
		method: 'PUT',
		data: data,
	});
}

export function delTenantDatabases(dsId: any) {
	return request({
		url: `plat/tenantDatabases/${dsId}`,
		method: 'DELETE',
	});
}
